home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / Stef / StefView.h < prev    next >
Text File  |  1993-06-24  |  1KB  |  58 lines

  1. #import <appkit/appkit.h>
  2. #import "Thinker.h"
  3.  
  4. // this code is copyright Darcy Brockbank, 1993
  5. //
  6. // You may freely reuse and distribute this code in any way shape or
  7. // form, provided that this notice stays intact.
  8. //
  9. // darcy@solutions.ca, samurai@cs.mcgill.ca
  10. //
  11. // StefView was implemented out of WorldSpaceView and retains some of the
  12. // movement properties...
  13. //
  14. // The code for WorldSpaceView was written by Sam Streeper at NeXT, I think,
  15. // and there were two other contributors, but I can't find their names in the
  16. // source for it.
  17. //
  18. // StefView is the common "Spotlight" screen saver you see on Macs and Windows
  19. // all the time. This is just a quick hack, and can do with vast amounts of
  20. // improvement I'm sure.
  21. //
  22. // If you do improve this thing, send me a copy!
  23. //
  24. // - darcy
  25.  
  26.  
  27. typedef struct { float l,b,r,t;    } BRECT;
  28.  
  29. @interface StefView:View
  30. {
  31.     id buffer;
  32.     id spot;
  33.     id clearSpot;
  34.     id sbuffer;
  35.     float    xpos;
  36.     float    ypos;
  37.     BRECT old;
  38.     NXPoint ballTo;
  39.     NXPoint maxCoord;
  40.     NXPoint redrawTo;
  41.     NXRect redraw;
  42.     NXSize oldSize;
  43.     int framesPerSecond;
  44.     int currentFrame;
  45.     NXSize imageSize;
  46.     BStimeval now, then;
  47.     BStimeval nextRotationTime;
  48.     id sharedInspectorPanel;
  49.     id speedSlider; /*KHO*/
  50. }
  51.  
  52. - oneStep;
  53. - sizeTo:(NXCoord)width :(NXCoord)height;
  54. - newViewSize;
  55. - (const char *)windowTitle;
  56.  
  57. @end
  58.